<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>修改协作内容</title>
<link href="css/table.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="js/kindeditor/kindeditor-min.js"></script>
<script type="text/javascript" src="js/kindeditor/lang/zh_CN.js"></script>
<script type="text/javascript" src="js/openwindow.js"></script>
<script type="text/javascript" src="js/team.js"></script>
<script type="text/javascript" src="js/file.js"></script>
<script type="text/javascript">
	 function loadFile(val){
		var fileId=$("#fileArray").val();
		if(fileId!=''&&fileId!='null'){
			var param={"fileArray":fileId};
			$.post("getFileList.action",param,function(data) {
				var list=data.fileList;
				for(var i=0;i<list.length;i++){
					$("#"+val).prepend("<tr><td><input type=\"checkbox\" name=\"checkbox2\" id=\""+list[i].id+"\" value=\""+list[i].id+"\" />&nbsp;<a href=\"downLoadFile.action?fileId="+list[i].id+"\">"+list[i].name+"</a>&nbsp;</tr>");
		        }
			},"json");
		}
	} 
</script>
</head>
<body onload="loadFile('filetable')">
<input type="hidden" id="currentPage" value="${currentPage}">
<form action="" method="post">
<input type="hidden" name="teamDraft.createTime" value="${teamDraft.createTime}">
<input type="hidden" name="teamDraft.id" value="${teamDraft.id}">
<input type="hidden" id="fileArray" name="teamDraft.fileId" value="${teamDraft.fileId}"> 
<table align="center" border="0" cellpadding="0" cellspacing="0" width="98%">
  <tbody>
  <tr>
    <td style="background: url('image/wsoa_window_002.gif');" width="1"></td>
    <td style="background: url('image/wsoa_window_002.gif');"><table border="0" cellpadding="0" cellspacing="0">
      <tbody><tr>
        <td align="center" style="background: url('image/wsoa_window_002.gif');" width="10"><img src="image/center_19.gif"></td>
        <td align="center" style="background: url('image/wsoa_window_002.gif');"></td>
        <td></td>
        </tr>
    </tbody>
    </table></td>
    <td style="background: url('image/wsoa_window_002.gif');" width="1"></td>
  </tr>
  <tr>
    <td style="background: url('image/wsoa_window_010.gif');"  width="1">&nbsp;</td>
    <td>
  <table width="100%" align="center" class="table5">
		<tr class="reigh_list4">
			<td class="table5 bgcolor5"  align="right" width="8%">
			标题：
			</td>
			<td class="table5" align="left" colspan="2">
				<input id="title" style="width:90%;height: 15px" name="teamDraft.title" type="text" maxlength="40" title="最多不超过100个字符" value="${teamDraft.title}" ></td>
		</tr>
		<tr class="reigh_list4">
			<td class="table5 bgcolor5"   align="right" width="8%">
			内容：
			</td>
			<td class="table5" align="left" colspan="2">
				<textarea name="teamDraft.content" id="content" style="width:96%;height:200px;visibility:hidden;">${teamDraft.content}</textarea>
			</td>
		</tr>
		<tr class="reigh_list4">
        	<td class="table5 bgcolor5" align="right"  align="right" width="8%">
			附件：
			</td>
			<td class="table5" align="left" colspan="2"><a href="javascript:file_upload('filetable')">添加附件</a>&nbsp;&nbsp;<a href="javascript:fileDel('filetable')">删除</a></td>
		</tr>
		<tr>
			<td class="table5 bgcolor5" align="right"></td>
        	<td class="table5" align="left" colspan="2">
				<table id="filetable" style="border:#cddee9 double 2px; width:605px">
					
				</table>
			</td>
         </tr>
         <tr class="reigh_list4">
			<td class="table5 bgcolor5" align="right"  width="10%">
			办理人：
			</td>
			<td class="table5" align="left" colspan="2">
				<textarea  cols="10" readonly="readonly" id="snames" name="teamDraft.actorName" style="height: 30px;width: 400px">${teamDraft.actorName}</textarea>
			    <input type="hidden" id="sids" name="teamDraft.actorId" value="${teamDraft.actorId}"><input class="sscc" type="button" onclick="selectUser('s')">
			   &nbsp;&nbsp;&nbsp;<span><input name="status" type="checkbox" value="1">短信提醒</span>
			</td>
		</tr>
	</table>
	<table align="center">
		<tr>
		<td align="center">
			<input class="button_04" type="button" onclick="updateTeam('updateSubmitNext.action')" value="提交下一步" >&nbsp;&nbsp;
			<input class="button_02" type="button" onclick="updateTeam('updatePoliceTeam.action')" value="保存" >&nbsp;&nbsp;
			<input class="button_02" type="button" onclick="window.close()" value="关闭" >
		 </td> </tr>
	</table>
  </td>
<td style="background: url('image/wsoa_window_006.gif');"  width="1">&nbsp;</td></tr>
  <tr>
    <td height="1" width="1"><img src="image/wsoa_window_009.gif" height="16" width="14"></td>
    <td style="background: url('image/wsoa_window_008.gif');" height="1"></td>
    <td height="1" width="1"><img src="image/wsoa_window_007.gif" height="16" width="12"></td>
  </tr>
</tbody>
</table>
</form>
</body>
</html>